package com.wyg.blog.utils;

/**
 * @description:
 * @author: WYG
 * @time: 2021/2/3 0:21
 */

public class APIException extends RuntimeException {
    private Integer code;

    private String msg;

    public APIException() {
        this(1001, "后台出错");
    }

    public APIException(String msg) {
        this(1001, msg);
    }

    public APIException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}